package LessonWork;

import java.util.Scanner;

public class LinearListTest {
	public static void main(String[] args) {
		SinglyList<String> linearlist = new SinglyList<>();
		Scanner scanner = new Scanner(System.in);
		/*for(int i=0;i<30;i++) {
			String data = (char)((int)(Math.random()*26)+65)+"";
			linearlist.insert(data);
		}*/
		//linearlist.clear();
		linearlist.insert("A");
		linearlist.insert("B");
		linearlist.insert("C");
		linearlist.insert("D");
		linearlist.reverse();
		System.out.println(linearlist);
	}
}
